/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package oneStopShop.UserInterfaces;


import java.util.Date;
import oneStopShop.Beans.Account;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author Administrator
 */
public class Main {

    public static void main(String[] args) {

        MainForm JFrame = new MainForm();

//              Session session = null;
//        try {
//            SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
//            session = sessionFactory.openSession();
//            Transaction transaction = session.beginTransaction();
//            Account account = new Account();
//            account.setAccountId(3);
//            account.setCreditBalance(4f);
//            account.setCreatedDate(new Date());
//            account.setCustomerNumber(5);
//            session.save(account);
//            transaction.commit();
//            session.flush();
//            session.close();
//            System.out.println("dsfgsdfg");
//
//            //ist<Account> temp = (List<Account>) session.createCriteria(Account.class).add(Restrictions.eq("creditLimit", 1000)).list();
//           // Account temp1 = (Account) session.createCriteria(Account.class).add(Restrictions.eq("creditLimit", 1000)).uniqueResult();
//
//
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }

       
    }

  

}
